 {% extends "okno/main.html" %}

{% block title %}
Единое окно: поиск граждан
{% endblock %}

{% block scripts %}
	<script type="text/javascript">
		function do_search() {
			var data = $("#search_citizen_form").serialize();
			$.post('/okno/search/', data, function (result) {
				$("#search_results").html(result);
			});
		}
	</script>
{% endblock %}

{% block content %}
<h2>Поиск граждан</h2>

<form id="search_citizen_form" name="search_citizen" action="/okno/search/" method="post">
<ul>
	{{ form.as_ul }}
</ul>
<input type="submit" value="Искать" onclick="javascript:do_search(); return false;">
</form>

<div id="search_results">
{% include "okno/search_results.html" %}
</div>

{% endblock %}

{% block sidebar %}
	{{ block.super }}
	
	
{% endblock %}